home *** CD-ROM | disk | FTP | other *** search
- ;******************************************************
- ;TITLE: MOVSLOW2.ASM
- ;CREATED BY: Intelligent Technologies
- ;DESCRIPTION: Move the IBot until one of the sides of armor
- ; is gone and then self destruct
- ;NOTES: This program was created to act as a training target
- ;Name Date Description
- ;---------------- ------------- -------------------
- ;ITI July 22, 1995 created the program
- ;******************************************************
-
- .NAME "MoveSlow2"
-
- COPR #CHASSISMOVE,#40 ;move IBot forward 40 units
- Loop
- MOVE #4,R0 ;move value 3 into r0
- COPR #CHASSISMOVE,R0 ;move IBot distance(r0)
- Delay
- GETP #ARMORFRONT,R1 ;get amount of armor left up front plate
- JE Destruct ;Blow up IBot
- GETP #ARMORBACK,R1 ;get amount of armor left in back plate
- JE Destruct ;Blow up IBot
- GETP #ARMORLEFT,R1 ;get amount of armor left on left plate
- JE Destruct ;Blow up IBot
- getp #ARMORRIGHT,R1 ;get amount of armor left on right plate
- JE Destruct ;Blow up IBot
- COPR #CHASSISTURN,#1350 ;turn IBot around 3 3/4 times
- COPR #CHASSISMOVE,#5 ;move IBot forward 5 units
- DEC R0 ;subtract 1 from r0
- JE Loop ;go to loop
- JUMP Delay ;go delay again
- Destruct
- COPR #OFFENSEDESTRUCT,R0 ;destroy this IBot
-